package com.evaluation_system.service;

import com.evaluation_system.pojo.DTO.UploaderPageQueryDTO;
import com.evaluation_system.pojo.Result.PageResult;
import com.evaluation_system.pojo.entity.Uploader;
import com.evaluation_system.pojo.entity.abstractInfo;
import com.evaluation_system.pojo.entity.encryptInfo;
import org.springframework.web.multipart.MultipartFile;

import java.util.Map;

public interface UploadService {
    public abstractInfo getAbstract();
    public encryptInfo getEncryptInfo();
    public void getUserId(String username);

    public Map<String, Object> encryptInfo(MultipartFile file, String filename);

    public void saveFile(String fileName, String summary);

    public String saveAliyun(byte[] fileBytes,Integer id,String fileName);

    PageResult<Uploader> pageQuery(UploaderPageQueryDTO uploaderPageQueryDTO);

    void add(Uploader uploader);

    void update(Uploader uploader);

    void deleteById(Integer id);
}
